<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
    <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
	<head>
		<title>新增信息</title>
		
		<script type="text/javascript" src="${pageContext.request.contextPath}/static/js/jquery.js"></script>
		<script src="${pageContext.request.contextPath}/static/lib/jquery.metadata.js" type="text/javascript"></script>
		<script src="${pageContext.request.contextPath}/static/lib/jquery.validate.min.js" type="text/javascript"></script>
		
		<script type="text/javascript">	
		$().ready(function(){
			$("#userForm").validate();
		});		
		</script>
		
	</head>
		<!-- /section:settings.box -->
		<div class="page-content-area">
			<div class="page-header">
				<ul class="breadcrumb">
					<li>
						<i class="ace-icon fa fa-home home-icon"></i>
						<a href="#">管理学员信息</a>
					</li>
				</ul>
			</div><!-- /.page-header -->

			<div class="row">
				<div class="col-xs-12">
					<!-- PAGE CONTENT BEGINS -->
					<form:form id="userForm" class="form-horizontal" role="form" action="add" method="post" modelAttribute="user">
						<!-- #section:elements.form -->
						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 学号 </label>

							<div class="col-sm-9">
								<form:input path="userId" type="text" id="form-field-1" placeholder="ID" class="col-xs-10 col-sm-3" />
								<form:errors path="userId" cssClass="errors" cssStyle="color:red"/>
							</div>
						</div>
						
						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 姓名 </label>

							<div class="col-sm-9">
								<form:input path="userName" type="text" id="form-field-1" placeholder="Name" class="col-xs-10 col-sm-3" />
								<form:errors path="userName" cssClass="errors" cssStyle="color:red"/>
							</div>
						</div>
						
						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 性别 </label>

							<div class="col-sm-9">
								<form:input path="gender" type="text" id="form-field-1" placeholder="只能输入0或1，0代表男，1代表女" class="col-xs-10 col-sm-3" />
								<form:errors path="gender" cssClass="errors" cssStyle="color:red"/>					
							</div>
						</div>
						
						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 联系电话 </label>

							<div class="col-sm-9">
								<form:input path="tel" type="text" id="form-field-1" placeholder="Tel" class="col-xs-10 col-sm-3" />
								<form:errors path="tel" cssClass="errors" cssStyle="color:red"/>
							</div>
						</div>
						
						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 电子邮箱 </label>

							<div class="col-sm-9">
								<form:input path="email" type="text" id="form-field-1" placeholder="eamil" class="col-xs-10 col-sm-3" />
								<form:errors path="email" cssClass="errors" cssStyle="color:red"/>
							</div>
						</div>
						
						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 联系地址 </label>

							<div class="col-sm-9">
								<form:input path="address" type="text" id="form-field-1" placeholder="Address" class="col-xs-10 col-sm-3" />
								<form:errors path="address" cssClass="errors" cssStyle="color:red"/>
							</div>
						</div>
						
						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 出生日期 </label>

							<div class="col-sm-9">
								<form:input id="form-field-1" path="birthday" type="text" placeholder="yyyy-MM-dd" class="col-xs-10 col-sm-3 date" />
								<form:errors path="birthday" cssClass="errors" cssStyle="color:red"/>
							</div>
						</div>
						<div class="clearfix form-actions">
							<div class="col-md-offset-3 col-md-9">
								<button id="sub" class="btn btn-info" type="submit">
									<i class="ace-icon fa fa-check bigger-110"></i>
									Submit
								</button>

								&nbsp; &nbsp; &nbsp;
								<button class="btn" type="reset">
									<i class="ace-icon fa fa-undo bigger-110"></i>
									Reset
								</button>
							</div>
						</div>

					</form:form>
				</div><!-- /.col -->
			</div><!-- /.row -->
		</div><!-- /.page-content-area -->
	</body>
</html>
